package com.newsee.remote.idm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.newsee.remote.common.bean.JsonResult;
import com.newsee.remote.common.database.entity.SystemDepartmentThird;
import com.newsee.remote.common.dto.idm.SystemDepartmentDTO;
import org.springframework.scheduling.annotation.Async;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liangzhichen
 * @since 2019-07-11
 */
public interface ISystemDepartmentThirdService extends IService<SystemDepartmentThird> {

    /**
     * 组织同步接口
     *
     * @param systemDepartmentDTO 请求
     * @return 返回
     */
    JsonResult sync(SystemDepartmentDTO systemDepartmentDTO);

    /**
     * 增量同步组织接口
     *
     * @return 返回
     */
    @Async
    JsonResult sunacOrg(String startTime, String endTime);
}
